package com.chance.cc.crawler.development.command.schedule.ebrun;

import com.chance.cc.crawler.development.command.schedule.CrawlerJobScheduleCommand;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 15:10
 * @Description
 *      亿邦动力网
 **/
public class EbrunCrawlerJobSchedule {


    private static CrawlerJobScheduleCommand crawlerJobScheduleCommand =
            new CrawlerJobScheduleCommand("192.168.1.215",9589);


    public static void main(String[] args) {
//        deleteEastmoneyCrawlerJob("eastmoney-realtime-cron");
        republishEastmoneyCrawlerJobInfo("ebrun-realtime-cron");
    }

    public static void republishEastmoneyCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.republishCrawlerJob(triggerKey,"crawler_dev_host");
    }

    public static void publishEastmoneyCrawlerJobInfo(String triggerKey){
        crawlerJobScheduleCommand.publishCrawlerJob(triggerKey,"crawler_dev_host");
    }
    public static void deleteEastmoneyCrawlerJob(String triggerKey){
        crawlerJobScheduleCommand.deleteCrawlerJob(triggerKey,"crawler_dev_host");
    }
}
